package com.cool.shark.ex;

import com.cool.shark.web.ServiceCode;

/**
 * @Name: ServiceException
 * @Author: 西风残叶
 * @Date: 2024/3/29 21:34
 * @Version: 1.0
 * @TODO: 业务异常
 */
public class ServiceException extends RuntimeException{
    private ServiceCode serviceCode;
    public ServiceException(ServiceCode serviceCode,String message) {
        super(message);
        this.serviceCode=serviceCode;
    }
    public ServiceCode getServiceCode() {
        return serviceCode;
    }
}